package com.gpay.erp.services.purchase;

import com.gpay.erp.core.Services;
import com.gpay.erp.services.purchase.bean.Contract;
import com.gpay.erp.services.purchase.bean.PaidApplication;
import com.gpay.erp.services.purchase.bean.PaidApplicationSub;

import java.util.List;

/**
 * Created by wuzonghui on 15/11/6.
 */
public interface PaidApplicationService extends Services<PaidApplication> {
    PaidApplication selectByFid(String f_paymentOrderId);

    String getPaidApplicationCode();

    int savePaidApplicationSubList(PaidApplication paidApplication, List<PaidApplicationSub> paidApplicationSubList, List<Contract> contractList);

    int saveUpdatePaidApplicationSub(PaidApplication paidApplication, List<PaidApplicationSub> paidApplicationSublist,List<Contract> contractList1, List<Contract> contractList);

    int updatePaidApplicationSubList(String id, String status, List<Contract> contractList);

    int updateCommitPaidAppStatus(String id, String status);

    int deleteOnePaidApplicationSub(String id, List<String> subIds, List<Contract> contractList);
}
